package homework12月9号补交.homework2.d14;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;

public class Demo14 {
    public static void main(String[] args) throws IOException {
        List<String> list = FileUtils.readLines(new File("D:\\ldea dashuju\\day.12.6\\src\\czxy\\homework2\\d14\\txt"));
        HashMap<String, String> map = new HashMap<>();
        for (String s : list) {
            String[] arr = s.split(",");
            map.put(arr[0],arr[1]);
        }
    }
}
